package com.example.springboot;

import com.example.springboot.context.Test1ApplicationContextInit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 程序入口
 * <p>
 * <p>
 * @author Zhang.Z
 * @version 2025-09-21
 */
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(Application.class);

        springApplication.addInitializers(new Test1ApplicationContextInit());

        ConfigurableApplicationContext context = springApplication.run(args);
        context.close();
    }
}
